#ifndef MAPPIXMAPITEM_H
#define MAPPIXMAPITEM_H

#include <QGraphicsPixmapItem>

class MapPixmapItem : public QObject, public QGraphicsPixmapItem
{
    Q_OBJECT
private:
    QPointF clickPos;
public:
    MapPixmapItem(QGraphicsItem * parent = 0);
    virtual ~MapPixmapItem();
protected:
    virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
signals:
    void moved(qreal dx, qreal dy);
};

#endif // MAPPIXMAPITEM_H
